mathematics contest perimeter problems